/*
menu_draw();
*/
var menu_x, menu_y, menu_map, menu_option, menu_option_index;
for (n = 1; n < ds_grid_height(global.menu_index); n += 1)
{
    menu_x = view_xview[0]+ds_grid_get(global.menu_index,1,n);
    menu_y = view_yview[0]+ds_grid_get(global.menu_index,2,n);
    menu_map = ds_grid_get(global.menu_index,3,n);
    menu_list = ds_grid_get(global.menu_index,4,n);
    menu_w = menu_get_longest_option(menu_map)+12;
    menu_h =10+ds_map_size(menu_map)*10;
    textbox_draw_canvas(menu_x,menu_y,menu_w,menu_h);
    for (opt=0; opt < ds_map_size(menu_map); opt++)
    {
        if (global.menu_options == menu_map)
        {
            if (global.menu_option_selected == opt)
            {
                _color = c_white;
                draw_set_color(c_menured1);
                draw_rectangle(menu_x+5,menu_y+5+(opt*10),menu_x+menu_w-6,menu_y+14+(opt*10),false);
            }
            else
            {
                _color = c_menuyellow1;
            }
        }
        else
        {
            _color = c_gray;
        }
        textbox_draw_text(menu_x+6,menu_y+6+(opt*10),ds_map_find_value(menu_map,ds_list_find_value(menu_list, opt)),_color,0);
        //textbox_draw_text(menu_x+6,menu_y+6+(opt*10),ds_list_find_value(menu_list,opt),c_white,0);
    }
}
